package ee.ttu.rakarh.model.data.entities;

import java.sql.Timestamp;
import java.util.Map;
import java.util.Set;

public class Item {
	private int id;
	private Map<Store, Integer> itemStore;
	private UnitType unitType;
	private Enterprise supplierEnterprise = null;
	private ItemType itemType;
	private String name;
	private double storePrice;
	private double salePrice;
	private String producer;
	private String description;
	private String producerCode;
	private Timestamp created;
	private Set<ItemAttribute> itemAttributes;

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the itemStore
	 */
	public Map<Store, Integer> getItemStore() {
		return itemStore;
	}

	/**
	 * @param itemStore
	 *            the itemStore to set
	 */
	public void setItemStore(Map<Store, Integer> itemStore) {
		this.itemStore = itemStore;
	}

	/**
	 * @return the unitType
	 */
	public UnitType getUnitType() {
		return unitType;
	}

	/**
	 * @param unitType
	 *            the unitType to set
	 */
	public void setUnitType(UnitType unitType) {
		this.unitType = unitType;
	}

	/**
	 * @return the supplierEnterprise
	 */
	public Enterprise getSupplierEnterprise() {
		return supplierEnterprise;
	}

	/**
	 * @param supplierEnterprise
	 *            the supplierEnterprise to set
	 */
	public void setSupplierEnterprise(Enterprise supplierEnterprise) {
		this.supplierEnterprise = supplierEnterprise;
	}

	/**
	 * @return the itemType
	 */
	public ItemType getItemType() {
		return itemType;
	}

	/**
	 * @param itemType
	 *            the itemType to set
	 */
	public void setItemType(ItemType itemType) {
		this.itemType = itemType;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the storePrice
	 */
	public double getStorePrice() {
		return storePrice;
	}

	/**
	 * @param storePrice
	 *            the storePrice to set
	 */
	public void setStorePrice(double storePrice) {
		this.storePrice = storePrice;
	}

	/**
	 * @return the salePrice
	 */
	public double getSalePrice() {
		return salePrice;
	}

	/**
	 * @param salePrice
	 *            the salePrice to set
	 */
	public void setSalePrice(double salePrice) {
		this.salePrice = salePrice;
	}

	/**
	 * @return the producer
	 */
	public String getProducer() {
		return producer;
	}

	/**
	 * @param producer
	 *            the producer to set
	 */
	public void setProducer(String producer) {
		this.producer = producer;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the producerCode
	 */
	public String getProducerCode() {
		return producerCode;
	}

	/**
	 * @param producerCode
	 *            the producerCode to set
	 */
	public void setProducerCode(String producerCode) {
		this.producerCode = producerCode;
	}

	/**
	 * @return the created
	 */
	public Timestamp getCreated() {
		return created;
	}

	/**
	 * @param created
	 *            the created to set
	 */
	public void setCreated(Timestamp created) {
		this.created = created;
	}

	/**
	 * @return the itemAttributes
	 */
	public Set<ItemAttribute> getItemAttributes() {
		return itemAttributes;
	}

	/**
	 * @param itemAttributes
	 *            the itemAttributes to set
	 */
	public void setItemAttributes(Set<ItemAttribute> itemAttributes) {
		this.itemAttributes = itemAttributes;
	}

}
